﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using FarmSmartSleep.Common.Domain.RBACFile;
using R.FarmSmartSleep.RBAC.API.Apliction.Command;
using R.FarmSmartSleep.RBAC.API.Apliction.Command.Permissions;
using R.FarmSmartSleep.RBAC.API.Apliction.Command.Roless;
namespace R.FarmSmartSleep.RBAC.API.Common
{
    /// <summary>
    /// AutoMapperPro
    /// </summary>
    public class AutoMapperPro:Profile
    {
        /// <summary>
        /// AutoMapperPro
        /// </summary>
        public AutoMapperPro()
        {
            CreateMap<EmployeeRouterCommon,Employee>();//用户添加
            CreateMap<RolesCreateCommon, Roles>();//角色天啊及
            CreateMap<PermissionCreateCommon, Permission>();//权限更新
            CreateMap<PhoneCaptchaCreateCommon, PhoneCaptcha>().ReverseMap(); ;

        }
       
    }
}
